<%@page import="dto.Cdd"%>
<%@page import="java.util.Iterator"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
	
	
	<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css' />
 
	<title>Editar CDD</title> 
	
	<link rel="stylesheet" href="style.css" />
</head>
<body>


<% Cdd cdd = (Cdd) request.getAttribute("cdd"); %>

<div id="conteudo" >
	<form action="ManterCddControl" name="form1" class="form1" method="post"> 
	
	<input type="hidden" value="alterar" name="tipoRequisicao">
	<input type="hidden" value="<%=cdd.getIdCdd() %>" name="ID">
	
		<h1 class="h1">Editar CDD</h1>
				
		<fieldset id="user-details">	
			
			<label for="nomecdd">CDD:</label>
			<input type="text" name="nomecdd" value="<%=cdd.getNomeCdd() %>" />  
			
	 			
		
		</fieldset>
		
		<fieldset id="user-message">
		
			<input type="submit" value="Enviar" name="submit" class="submit" onclick="return validar()" />		
		
		</fieldset>
        	<a href="home.jsp"><input type="" value="Voltar" name="Voltar" class="" id="voltar"  /></a>
	</form>
	
   
<script language="javascript" type="text/javascript">
	function validar() {
		var nome = form1.nome.value;
		
 
	if (nome == "") {
		alert('Preencha o campo nome');
		form1.nome.focus();
	return false;
	}
	
	
}

function mascara(t, mask){
 	var i = t.value.length;
	 var saida = mask.substring(1,0);
 	var texto = mask.substring(i)
 	if (texto.substring(0,1) != saida){
 		t.value += texto.substring(0,1);
	 }
 }

</script>
	<div>	
 	<div id="rodape">
		<h5 align="center">PROJETO FINAL - I</h5>
		<center><font="" id="font__">  @Yuri @Rodrigo @Jonatas </font></center>
	</div>

</body>
</html>